package cn.zmwh.im.server.modules.ums.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.minidev.json.annotate.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author dmzmwh
 * @since 2025-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("im_user")
@ApiModel(value = "ImUser对象", description = "用户")
public class ImUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户头像")
    private String headImage;

    @ApiModelProperty(value = "用户头像缩略图")
    private String headImageThumb;

    @ApiModelProperty(value = "性别 0:男 1:女")
    private Integer sex;

    @ApiModelProperty(value = "是否被封禁 0:否 1:是")
    private Integer isBanned;

    @JsonIgnore
    @ApiModelProperty(value = "消息库")
    private Integer messageDb;

    @JsonIgnore
    @ApiModelProperty(value = "消息表")
    private Integer messageTable;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;


}
